package com.liu.design.behavior.observer;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LIU
 * @version 1.0
 * @description: 主播抽象类   粉丝观察主播
 * @date 2022/12/20 10:33
 */
public abstract class AbstractTiktok {
    //观察者核心
    List<AbstractFans> fansList =  new ArrayList<>();

    //添加粉丝
    abstract void addFans(AbstractFans fans);

    // 通知粉丝
    abstract void  notifyFans(String msg);
}
